import tkinter as tk

window = tk.Tk()
window.title("To-Do List")

generaltitle = tk.Label(window,text="Title:",font=("Times",20))
generaltitle.grid(row=0,column=0,padx=5,pady=5)

entry_task = tk.Entry(window,width=30)
entry_task.grid(row=0,column=1,padx=5,pady=5)
entry_task.config(font=("Times",20))

label_priority = tk.Label(window, text="Priority:")
label_priority.grid(row=1, column=0, padx=5, pady=5)
label_priority.config(font=("Times",20))

priority_var = tk.StringVar(value="Low")

option_menu_priority = tk.OptionMenu(window, priority_var, "Low", "Medium", "High")
option_menu_priority.grid(row=1, column=1, padx=5, pady=5)
option_menu_priority.config(font=("Times",20))

label_description = tk.Label(window, text="Description:")
label_description.grid(row=2, column=0, padx=5, pady=5)
label_description.config(font=("Times",20))

entry_description = tk.Entry(window, width=30)
entry_description.grid(row=2, column=1, padx=5, pady=5)
entry_description.config(font=("Times",20))

label_date = tk.Label(window, text="Date: ")
label_date.grid(row=3, column=0, padx=5, pady=5)
label_date.config(font=("Times",20))

entry_date = tk.Entry(window, width=30)
entry_date.grid(row=3, column=1, padx=5, pady=5)
entry_date.config(font=("Times",20))

listbox_title = tk.Label(window,text="List:",font=("Times",20))
listbox_title.grid(row=4,column=0,padx=5,pady=5)
listbox_title.config(font=("Times",20))

listbox_tasks = tk.Listbox(window, height=10, width=50)
listbox_tasks.grid(row=4, column=0, columnspan=2, padx=5, pady=5)

button_add_task = tk.Button(window, text="Add")
button_add_task.grid(row=5, column=0, padx=5, pady=5)
button_add_task.config(font=("Times",20))

button_delete_task = tk.Button(window, text="Delete")
button_delete_task.grid(row=5, column=1, padx=5, pady=5)
button_delete_task.config(font=("Times",20))

button_edit_task = tk.Button(window, text="Edit")
button_edit_task.grid(row=6, column=0, padx=5, pady=5)
button_edit_task.config(font=("Times",20))

button_add_photo = tk.Button(window, text="Add picture")
button_add_photo.grid(row=6, column=1, padx=5, pady=5)
button_add_photo.config(font=("Times",20))




window.mainloop()
